const routes = [
    {
        path: "/",
        component: () => import('@/views/layout.vue'),
        children: [
            {
                path: '',
                component: () => import('@/views/index/index.vue')
            },
            //子路由 不需要写/
            // {
            //     path: 'org',
            //     component: () => import('@/views/org/org-in.vue')
            // },
            // {
            //     path: 'power',
            //     component: () => import('@/views/power/pow-in.vue')
            // }
        ]
    },
    {
        path: "/login",
        name: "login",
        component: () => import('@/views/login/login.vue'),
        meta: {
            title: "登录",
            not_check: true
        }
    },
    {
        path: "/404",
        component: () => import('@/views/error-pages/404.vue'),
        meta: {
            title: "404",
            not_check: true
        }
    },
    {
        path: "/403",
        component: () => import('@/views/error-pages/403.vue'),
        meta: {
            title: "访问受限",
            not_check: true
        }
    },
    {
        //该路由必须出现在路由表的最后一项
        path: "*",
        component: () => import('@/views/error-pages/404.vue'),
        meta: {
            not_check: true
        }
    },


];

export default routes